import java.io.IOException;

import net.sf.json.JSONArray;
import net.sf.json.JSONObject;

import org.apache.commons.httpclient.HttpClient;
import org.apache.commons.httpclient.HttpException;
import org.apache.commons.httpclient.NameValuePair;
import org.apache.commons.httpclient.methods.PostMethod;

public class Test {
	public static void main(String[] args) {
		JSONArray logicJsonArray = new JSONArray();
		String requstJson= "";
		HttpClient client = new HttpClient();
		PostMethod method = new PostMethod("http://192.168.8.105:8090/ekp/sys/restful/task/sysTaskHook.do?method=postMethodUrl");
		method.setRequestHeader("Content-Type",  
                "application/json");
		method.setRequestBody(requstJson);
		
		
			int statusCode = 0;
			try {
				statusCode = client.executeMethod(method);
			} catch (HttpException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			} catch (IOException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
			if (statusCode == 200) {
				System.out.println("ok");
			}
			System.out.println("代码发生了变化");
	}
}
